package dome1;

import dome1.Cat;
import dome1.Dog;
import dome1.Pet;



public class Main {
    public static void main(String[] args) {
        Pet p0 = new Pet("肉包","刺猬",2,"black",60);
        p0.print();
        Pet p1 = new Cat("小咪","小型",1,"orange",120);
        p1.print();
        Pet p2 = new Dog("旺财","大型",3,"write",80);
        p2.print();
        p0.eat();


        Cat cat = new Cat();
        cat.play();
        p1.eat();
        Dog dog = new Dog();
        dog.woof();
        p2.eat();
    }
}